/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package com.lineage.server.packetserver;

import com.lineage.server.codes.Opcodes;

/**
 * Class <code>S_SkillIconGFX</code> 技能状态图示(右上角).
 * 
 * @author jrwz
 * @version 2012-6-2下午02:55:01
 * @see com.lineage.server.packetserver
 * @since JDK1.7
 */
public final class S_SkillIconGFX extends ServerBasePacket {

    /** 服务器数据包类型的文字信息. */
    private static final String S_SKILL_ICON_GFX = "[S] S_SkillIconGFX";

    /** . */
    private byte[] _byte = null;

    /** -: 蓝色药水. */
    public static final int BLUE_POTION = 34;
    /** -: 禁言. */
    public static final int BAN_CHAT = 36;

    /**
     * 技能状态图示(右上角).
     * 
     * @param i
     *            封包代码
     * @param j
     *            时间(单位:秒)
     */
    public S_SkillIconGFX(final int i, final int j) {
        this.writeC(Opcodes.S_OPCODE_SKILLICONGFX);
        this.writeC(i);
        this.writeH(j);
    }

    @Override
    public byte[] getContent() {
        if (this._byte == null) {
            this._byte = this.getBytes();
        }
        return this._byte;
    }

    @Override
    public String getType() {
        return S_SKILL_ICON_GFX;
    }
}
